
<%@ page import="java.util.List" %>

<%@ page import="java.util.ArrayList" %>
<%@ page import="com.timeDeal.bean.XuqiufabuBean" %>

<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2016/9/1
  Time: 22:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<XuqiufabuBean>  result= ( List<XuqiufabuBean> )request.getAttribute("result") ;
    List<String>  name= ( List<String> )request.getAttribute("name") ;
   int   max= (Integer.valueOf( (String) request.getAttribute("max")))/3+1 ;
   int   currentpage= Integer.valueOf( (String) request.getAttribute("currentpage")) ;
%>
<%@ include file="../inc/admintop.jsp"%>
<div class="row">
    <div class="col-xs-12">
        <table class="table">
            <tr>
                <th>序号</th>
                <th>需求名称</th>
                <th>需求详情</th>
                <th>需求提交人</th>
                <th>操作</th>
            </tr>
            <%
                for (int i = 0; i <result.size() ; i++) {%>
            <tr>
                <th><%=currentpage*3+i+1%></th>
                <th><a href="<%=ctxpath%>/user/xuqiudetailgg.jsp?id=<%=result.get(i).getXuqiufabuid()%>"><%=result.get(i).getXuqiumingcheng()%></a></th>
                <th><%=result.get(i).getMiaoshu()%></th>
                <th><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=result.get(i).getJiafangid()%>" > <%=name.get(i)%></a></th>
                <th><a href="<%=ctxpath%>/admin/shenhetongguo?id=<%=result.get(i).getXuqiufabuid()%>&currentpage=<%=currentpage%>&leixing=xuqiufabu" style="margin-right: 50px" >审核通过</a>
                    <a href="<%=ctxpath%>/admin/shenhebutongguo?id=<%=result.get(i).getXuqiufabuid()%>&currentpage=<%=currentpage%>&leixing=xuqiufabu">审核不通过</a></th>
            </tr>
                <%}%>
        </table>
        <div align="center">
            <%
                for (int i = 0; i <max ; i++) { %>
              <label><a href="xuqiuchuligg.jsp?currentpage=<%=i%>"><%=i+1%></a></label>
            <% }%>
            <br>
            <br>
            <br>
        </div>
        <button style="align-content: center"><a href="<%=ctxpath%>/admin/guanli.jsp">返回</a></button>
    </div>


</div>
<%@ include file="../inc/bottom.jsp"%>